package com.wy.ssm01.service.impl;


import com.wy.ssm01.mapper.TestLogMapper;
import com.wy.ssm01.entity.MyTestLog;
import com.wy.ssm01.service.TestLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestLogServiceImpl implements TestLogService {
    @Autowired()
    private TestLogMapper testLogMapper;

    @Override
    public int insert(MyTestLog myTestLog) {
        return testLogMapper.insert(myTestLog);
    }

    @Override
    public int clearLogs() {
        return testLogMapper.deleteAll();
    }

    @Override
    public List<MyTestLog> seeAllLogs() {
        return testLogMapper.queryAll();
    }
}
